home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_vol_boatspot.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  78 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_torchlight.cog
  4. #
  5. # [SXC]
  6. #
  7. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13. #...........MESSAGES...............................
  14. message     startup
  15. message     entered
  16. message     pulse
  17.  
  18.  
  19. #...........ACTORS...............................
  20. thing        player                                    local
  21.  
  22. #...........TRIGGERS...............................
  23. surface        view_surf
  24.  
  25. #...........VARIABLES...............................
  26. int            in_thespot=0                            local
  27. int            seen=0                                    local
  28.  
  29. #...........PROPS...............................
  30. thing        boat_spot
  31.  
  32. #...........PROPS...............................
  33. sound        in_boatline=VL02J01.WAV                    local
  34.  
  35. end
  36.  
  37. # ========================================================================================
  38.  
  39. code
  40. startup:
  41.     
  42. player = GetLocalPlayerThing();
  43. return;
  44. # ........................................................................................
  45. entered:
  46.  
  47. If (seen == 1) return;
  48. If (GetSenderRef() != view_surf) return;
  49. If (GetSourceRef() != player) return;
  50.  
  51. in_thespot = 1;
  52. SetPulse(0.25);
  53. return;
  54.  
  55. # ........................................................................................
  56. pulse:
  57.  
  58. If (in_thespot != 1) return;
  59. If (seen == 1) return;
  60.  
  61. If (IsGhostVisible(player, boat_spot, 40) == 1)
  62.    {
  63.    PlayVoice(player, in_boatline, 1.0, 0);
  64.    seen = 1;
  65.    SetPulse(0);
  66.    }
  67.  
  68. return;
  69. # ........................................................................................
  70. end
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.